package cn.yiyuan.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.env.SpringApplicationJsonEnvironmentPostProcessor;

/**
 * @user m
 * @project system_boog
 * @date 2023-10-10
 * @package cn.yiyuan.query
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class EmpQuery {
//   关键字
    private String keyword;
//    当前页
    private Integer currentpage;
//    总页数
    private  Integer pageSize;

//    获取Starter
    public int getStart(){
            return (currentpage-1)*pageSize;
    }
}
